]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Use the right getter
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Jan 2013 03:00:06 +0000 (22:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Jan 2013 03:01:25 +0000 (22:01 -0500)
org.gnome.desktop.screensaver lock-delay is an integer, not
a boolean, so don't use get_bool() on it.

https://bugzilla.gnome.org/show_bug.cgi?id=691170

js/ui/screenShield.js

index 81d9655ee997b9f870acd8e6d57451480d72be81..7c6fcd5ce33c6c24e31982a04774a48a63a62233 100644 (file)
@@ -641,7 +641,7 @@ const ScreenShield = new Lang.Class({
                 let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000;
                 let shouldLock = lightboxWasShown &&
                     this._settings.get_boolean(LOCK_ENABLED_KEY) &&
-                    (elapsedTime >= this._settings.get_boolean(LOCK_DELAY_KEY));
+                    (elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY));
                 if (shouldLock || this._isLocked) {
                     this.lock(false);
                 } else if (this._isActive) {